/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.geotools.multithread;

import java.util.concurrent.Callable;
import org.geotools.geosearch.Guide;

/**
 *
 * @author olegelantsev
 */
public class TaskFindPath implements Callable<String> {

    private Guide guide=null;
    private double points[];

    public TaskFindPath(Guide guide, double[] points) {
        this.guide = guide;
        this.points = points;
    }

    @Override
    public String call() throws Exception {
        return guide.guidanceJSONMultiple(points);
    }

    public Guide getGuide() {
        return guide;
    }

    
}
